<?php

// set environment
$path = dirname(__FILE__) . '/components/SaoriEnvironment.php';
require_once($path);
$env = new SaoriEnvironment(); //determine mode by file

// run Yii app
$config = $env->configConsole;
require_once($env->yiicPath);

// Want to execute runYiiStatics()? Modify yiic.php
// AFTER: require_once(dirname(__FILE__).'/yii.php');
// ADD: $env->runYiiStatics();